Download Python Institute.PCAP.Pass4SureExam.2020-03-05.43q.tqb

Download Exam

File Info

Exam Certified Associate in Python Programming
Number PCAP
File Name Python Institute.PCAP.Pass4SureExam.2020-03-05.43q.tqb
Size 1 MB
Posted Mar 05, 2020
Download Python Institute.PCAP.Pass4SureExam.2020-03-05.43q.tqb

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

What will be the value of the i variable when the while e loop finishes its execution? 
  


  1. 1
  2. 0
  3. 2
  4. the variable becomes unavailable
Correct answer: A
Explanation:
  
  



Question 2

What will the value of the i variable be when the following loop finishes its execution? 
  


  1. 10
  2. the variable becomes unavailable
  3. 11
  4. 9
Correct answer: B
Explanation:
Reference: https://www.programiz.com/python-programming/pass-statement
Reference: https://www.programiz.com/python-programming/pass-statement



Question 3

What is the expected output of the following snippet? 
  


  1. the code is erroneous
  2. 3
  3. 7
  4. 15
Correct answer: A



Question 4

Which of the following literals reflect the value given as 34.23? (Select two answers)


  1. .3423e2
  2. 3423e-2
  3. .3423e-2
  4. 3423e2
Correct answer: AB
Explanation:
  
  



Question 5

What is the expected output of the following snippet? 
  


  1. 3
  2. 1
  3. 2
  4. the code is erroneous
Correct answer: A
Explanation:
  
  



Question 6

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers) 
  


  1. len(a)== len (b)
  2. a [0]-1 ==b [0]
  3. a [0]== b [0]
  4. b [0] - 1 ==a [0]
Correct answer: AB
Explanation:
  
  



Question 7

Which of the following statements are true? (Select two answers)


  1. Python strings are actually lists
  2. Python strings can be concatenated
  3. Python strings can be sliced like lists
  4. Python strings are mutable
Correct answer: BC
Explanation:
Reference: https://docs.python.org/2/tutorial/introduction.html
Reference: https://docs.python.org/2/tutorial/introduction.html



Question 8

Assuming that String is six or more letters long, the following slice 
  
is shorter than the original string by:


  1. four chars
  2. three chars
  3. one char
  4. two chars
Correct answer: A



Question 9

What is the expected output of the following snippet? 
  


  1. 1
  2. 4
  3. 2
  4. 3
Correct answer: C
Explanation:
  
  



Question 10

You need data which can act as a simple telephone directory. You can obtain it with the following clauses (Select two relevant variants; assume that no other items have been created before)


  1. dir={‘Mom’: 5551234567, ‘Dad’: 5557654321}
  2. dir= {‘Mom’: ‘5551234567’, ‘Dad’: ‘5557654321’}
  3. dir= {Mom: 5551234567, Dad: 5557654321}
  4. dir= {Mom: ‘5551234567’, Dad: ‘5557654321’}
Correct answer: CD









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files